package com.study.mike.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.mike.common.annotation.NeedDecrypt;
import com.study.mike.model.dto.Test1;
import com.study.mike.model.dto.UserDTO;
import com.study.mike.model.entity.MidUser;
import com.study.mike.model.entity.One;
import com.study.mike.model.entity.User;
import com.study.mike.model.query.UserQuery;
import com.study.mike.result.R;

import javax.validation.Valid;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author kh
 * @since 2021-12-29
 */
public interface UserService extends IService<User> {
    /**
     * 查询用户列表
     *
     * @return
     */
    List<User> queryInfo();

    /**
     * 分页查询
     * @param query
     * @return
     */
    @NeedDecrypt
    IPage<UserDTO> pageQuery(UserQuery query);

    /**
     * 导出用户
     * @return
     * @throws IOException
     */
    boolean exportUser() throws IOException;

    /**
     * 导入用户
     * @return
     * @throws Exception
     */
    boolean importUser() throws Exception;

    /**
     * 测试
     * @param one
     * @return
     */
    Boolean one(@Valid One one);

    /**
     * 新增用户
     * @param user
     * @return
     */
    Boolean add(User user);

    void test111();

    Boolean add1(MidUser user);

    /**
     * 获取缓存用户数据
     * @return
     */
    List<User> getUserInfoByRedis();

    /**
     * 更新用户
     * @param user
     * @return
     */
    Boolean updateUser(User user);

    /**
     * 转化
     * @param money
     * @return
     */
    String changeMoney(String money);

    /**
     * 解密字符串
     * @return
     */
   Boolean encryptName();

    /**
     * 导出用户信息
     * @return
     */
   String exportUserInfo();

}
